home *** CD-ROM | disk | FTP | other *** search
- Path: castle.nando.net!news
- From: Caius Martius <caius@nando.net>
- Newsgroups: comp.lang.c++
- Subject: Re: How to clear screen?
- Date: Mon, 25 Mar 1996 17:16:35 -0800
- Organization: Carolantic Realty, Inc.
- Message-ID: <31574573.44E4@nando.net>
- References: <4gmalh$csq@cloner3.netcom.com> <Pine.A32.3.91.960228152731.19882A-100000@pegasus.acs.ttu.edu> <315527F6.3880@ljusdal.se>
- NNTP-Posting-Host: grail2115.nando.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
- X-Mailer: Mozilla 2.0 (Win95; I; 16bit)
-
- Marcsu wrote:
- >
- > akefay oscarway ayermay einerway wrote:
- > > > Is there a function to clear a text screen?
- > > #include <conio.h> // for clear screen function
- > > clrscr();
- > > this is for dos ...the header file is different for unix, and I do
- > > not know what it is....you can probably do a man on the function, or
- > > maybe not.
- >
- > Thereā¤s someone out there who knows what, the clear screen , function
- > etc. (header file), is called under UNIX(Linux), please post!!!
- > /marcsu
- >
- > marcus.berggren@ljusdal.se
-
- Just put this in a function... Works great on a unix system.
-
- cout << '\033' << "[;H" << '\033' <<"[2J" << flush;
-
- -Caius
-